package com.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Date;

/**
 * Created by yangjianbo on 2016/10/17.
 */
@Controller
public class LoginController {

    @RequestMapping(value = "/",method = RequestMethod.GET)
    public String index(Model model){

        model.addAttribute("now",new Date());
        model.addAttribute("name","yangjiano");
        return "login";
    }
}
